/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import entities.Foods;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author TANGQUOCTUAN
 */
@Local
public interface FoodsFacadeLocal {

    void create(Foods foods);

    void edit(Foods foods);

    void remove(Foods foods);

    Foods find(Object id);

    List<Foods> findAll();

    List<Foods> findRange(int[] range);

    int count();

    List detailFood(Integer foodid);

    List getCaFoodID(Integer caFoodID);

    List getAllFood();

    boolean updateFood(Integer id, String name, int cate, String desc, Double price, String picture);

    boolean insertFood(String name, int cate, String des, Double price, String picture);

    boolean deleteFood(Integer id);
   
}
